package designmode.command;

import designmode.command.elc.Light;
import designmode.command.elc.RemoteController;
import designmode.command.elc.Stereo;

/**
 * Created by Administrator on 2017/11/1 0001.
 */
public class RemoteLoader
{
    public static void main(String[] args)
    {
        Light l = new Light();
        Command lo = new LightOnCommand(l);
        Command lof = new LightOffCommand(l);
        Stereo s = new Stereo();
        Command so = new StereoOnCommand(s);
        Command sof = new StereoOffCommand(s);
        RemoteController c = new RemoteController();
        c.setCommand(0, so, sof);
        c.setCommand(1, lo, lof);
        c.btnPressOn(1);
    }
}
